import { createApp } from 'vue'
import { setupStore } from './stores/index'
import { useTable } from '@/plugins/vxeTable'
import 'vxe-table/lib/style.css'
import './style/reset.scss'
import './style/index.scss'
import 'element-plus/es/components/notification/style/css'
import App from './App.vue'
import { router } from './router'
import { useEcharts } from '@/plugins/echarts'
import { LazyImg } from '@/utils/directives'
const app = createApp(App)
setupStore(app)

// 将echarts 挂载到 app.config.globalProperties.$echarts
useEcharts(app)
app.use(router).use(useTable)
app.directive('lazy', LazyImg)
app.mount('#app')
